@echo offs
cd /d %~dp0
call setting.bat
for %%I in (.) do set CurrDirName=%%~nxI
dotnet build -p:Version=%Version% -o lib/net8.0
nuget pack %CurrDirName%.nuspec  -exclude  "*.exe" -exclude "*.bat"  -exclude "*.xml"  -exclude "*.xsd"  -exclude "***.cs"  -exclude "bin/**"  -exclude "obj/**" -exclude "*.csproj" -exclude "*.md"

for /r %%i in (*.nupkg) do (
   nuget push %%i -Source %Source%
   del %%i
)
pause